//
//  LoginRegistNet.h
//  SportSocial
//
//  Created by yull on 15/1/5.
//  Copyright (c) 2015年 yull. All rights reserved.
//

#import "BaseNet.h"

@interface LoginRegistNet : BaseNet

+ (AFHTTPRequestOperation *)loginWithName:(NSString *)name
                                 password:(NSString *)password
                             successBlock:(httpSuccessBlock)succesBlock
                                failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)loginByQQWithAccessToken:(NSString *)token
                                              openId:(NSString *)openId
                                        successBlock:(httpSuccessBlock)succesBlock
                                           failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)loginByWeiboWithAccessToken:(NSString *)token
                                                    uid:(NSString *)uid
                                           successBlock:(httpSuccessBlock)succesBlock
                                              failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)getWeixinAccessTokenWithAppid:(NSString *)appid
                                                   secret:(NSString *)secret
                                                     code:(NSString *)code
                                               grant_type:(NSString *)grant_type
                                             successBlock:(httpSuccessBlock)succesBlock
                                                failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)loginByWeixinWithAccessToken:(NSString *)token
                                                  openId:(NSString *)openId
                                            successBlock:(httpSuccessBlock)succesBlock
                                               failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)getVerifyCodeWithPhone:(NSString *)phone
                                      successBlock:(httpSuccessBlock)succesBlock
                                         failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)getForgotPWVerifyCodeWithPhone:(NSString *)phone
                                              successBlock:(httpSuccessBlock)succesBlock
                                                 failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)uploadUserHeadImage:(NSData *)picData
                                   successBlock:(httpSuccessBlock)succesBlock
                                      failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)registWithAccount:(NSString *)account
                                     password:(NSString *)password
                                        phone:(NSString *)phone
                                   verifyCode:(NSString *)verifyCode
                                 successBlock:(httpSuccessBlock)successBlock
                                    failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)resetPasswordWithPhone:(NSString *)phone
                                        verifyCode:(NSString *)verifyCode
                                       newPassword:(NSString *)newPassword
                                      successBlock:(httpSuccessBlock)successBlock
                                         failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)logoutSuccessBlock:(httpSuccessBlock)successBlock
                                     failBlock:(httpFailBlock)failBlock;

@end
